package afsviewergomobile

import (
	"embed"

	"github.com/starter-go/application"
	"github.com/starter-go/starter"

	"gitee.com/bitwormhole/afsviewer/modules/afsviewer"
)

const (
	theModuleName     = "gitee.com/bitwormhole/afsviewer-go-mobile"
	theModuleVersion  = "v0.0.1"
	theModuleRevision = 0
)

////////////////////////////////////////////////////////////////////////////////

const theResPathSrcMain = "src/main/resources"

//go:embed "src/main/resources"
var theResFsSrcMain embed.FS

////////////////////////////////////////////////////////////////////////////////

// Module ...
func Module() application.Module {
	mb := &application.ModuleBuilder{}
	mb.Name(theModuleName)
	mb.Version(theModuleVersion)
	mb.Revision(theModuleRevision)
	mb.EmbedResources(theResFsSrcMain, theResPathSrcMain)

	mb.Depend(starter.Module())
	mb.Depend(afsviewer.Module())

	return mb.Create()
}
